@echo off
echo ======================================
echo      WiFi认证系统 API测试脚本
echo ======================================
echo.

echo [测试1] WiFi认证扫码接口
curl -X POST "http://localhost:8080/wifi/auth/scan?deviceId=DEV-001"
echo.
echo.

echo [测试2] 获取设备策略接口（带缓存容错）
curl -X GET "http://localhost:8080/wifi/auth/strategy/DEV-001"
echo.
echo.

echo [测试3] 第三方白名单接口
curl -X GET "http://localhost:8080/third/Income/whiteSiteList"
echo.
echo.

echo [测试4] 云盒配置查询
curl -X GET "http://localhost:8080/third/third-party/yunhe/config"
echo.
echo.

echo [测试5] 获取策略缓存状态（预热缓存）
curl -X POST "http://localhost:8080/wifi/auth/strategy/warmup/DEV-001"
echo.
echo.

echo ======================================
echo           测试完成
echo ======================================
pause 